Result Api Java
interface ResultApiJava
Java-friendly API for reflectively providing results from a config using string scopes rather than direct access.
Author
fzzyhmstrs
Since
0.5.3
Inheritors
Functions
Link copied to clipboard
abstract fun <T : Any> createResultProvider(fallback: Supplier<T>, clazz: Class<T>): ResultProvider<T>
Creates a result provider that will return values of the given type from valid config scopes matching that type.
abstract fun <T : Any> createResultProvider(fallback: Supplier<T>, drillFunction: ResultProviderSupplierJava<T>): ResultProvider<T>
Creates a result provider that will return values of the given type from valid config scopes matching that type, with a custom Supplier generator instance.
Link copied to clipboard
Creates a result provider that will return values of the given type from valid config scopes matching that type.
abstract fun <T : Any> createSimpleResultProvider(fallback: T, drillFunction: ResultProviderSupplierJava<T>): ResultProvider<T>
Creates a result provider that will return values of the given type from valid config scopes matching that type, with a custom Supplier generator instance.